using System;

namespace SpoolFileLibrary.Reader.Winspool {
    public class ImageColorManagementMethod {
        private readonly ImageColorManagementMethodKind imageColorManagementMethodKind = ImageColorManagementMethodKind.None;
        private readonly int imageColorManagementMethodValue;

        public ImageColorManagementMethod(int value) {
            this.imageColorManagementMethodValue = value;
            if(value >= 0x00000100) {
                this.imageColorManagementMethodKind = ImageColorManagementMethodKind.Custom;
                return;
            }
            if(!Enum.IsDefined(typeof(ImageColorManagementMethodKind), value)) {
                return;
            }
            this.imageColorManagementMethodKind = (ImageColorManagementMethodKind) value;
            return;
        }

        public ImageColorManagementMethodKind ImageColorManagementMethodKind {
            get { return this.imageColorManagementMethodKind; }
        }

        public int ImageColorManagementMethodValue {
            get { return this.imageColorManagementMethodValue; }
        }
    }
}